package com.lottery.www.dao;

import cn.hutool.db.sql.Order;
import com.lottery.www.entity.OrderDetails;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author leo
 * @since 2023-05-23 12:43:08
 */
@Repository("orderDetailsDao")
public interface OrderDetailsDao extends MPJBaseMapper<OrderDetails> {

    @Select("SELECT detailid,now_cycle_value FROM order_details where order_type=#{type}")
    public List<OrderDetails> findCycleValueByType(String type);
}
